<template>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners"/>
</template>

<script>
  import JSelectBizComponent from './JSelectBizComponent'

  export default {
    name: 'JSelectPosition',
    components: { JSelectBizComponent },
    props: ['value'],
    data() {
      return {
        settings: {
          name: '发行机构',
          displayKey: 'instName',
          returnKeys: ['id', 'instCode'],
          listUrl: '/institution/institution/list',
          queryParamCode: 'instName',
          queryParamText: '发行机构名称',
          columns: [
            { title: '发行机构名称', dataIndex: 'instName', align: 'center', width: '30%', widthRight: '70%' },
            { title: '发行机构编码', dataIndex: 'instCode', align: 'center', width: '35%' }
          ]
        }
      }
    },
    computed: {
      configs() {
        return Object.assign({ value: this.value }, this.settings, this.$attrs)
      }
    }
  }
</script>

<style lang="less" scoped></style>